package com.myFirstSpringBootDemo.demo.config;

import com.myFirstSpringBootDemo.demo.service.impl.GoodByeService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServiceConfigure {
    /**
     * 方法的名字(goodByeService02)作为容器中对象的名字
     * @return
     */
    @Bean
    public GoodByeService goodByeService02(){

        return new GoodByeService();

    }

}
